//Luogu:392844 the second year in CSP-S rp++
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n,a[200001],ans;
queue<ll> q;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%lld",&n);
    for(ll i=1;i<=n;i++) scanf("%lld",a+i);
    sort(a+1,a+n+1);
    for(ll i=1;i<=n;i++){
        if(!q.size()){
            q.push(a[i]);
            continue;
        }
        if(a[i]>q.front()) q.pop();
        q.push(a[i]);
        ans=q.size();
    }
    printf("%lld",ans);
    return 0;
}
/*
14:35 There is something wrong with the .cpp and I don't how to deal with it:(
14:49 The four giving examples are all correct and I thought I can get 100pts:)
rp++;
*/
